<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template/template2.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditFunctionroleTitle}"></h:outputText>
        </ui:define>
        <ui:define name="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditFunctionroleLabel_functionroleid}" for="functionroleid" />
                    <h:inputText id="functionroleid" value="#{functionroleController.selected.functionroleid}" title="#{bundle.EditFunctionroleTitle_functionroleid}" required="true" requiredMessage="#{bundle.EditFunctionroleRequiredMessage_functionroleid}"/>
                    <h:outputLabel value="#{bundle.EditFunctionroleLabel_description}" for="description" />
                    <h:inputText id="description" value="#{functionroleController.selected.description}" title="#{bundle.EditFunctionroleTitle_description}" />
                    <h:outputLabel value="#{bundle.EditFunctionroleLabel_roleId}" for="roleId" />
                    <h:selectOneMenu id="roleId" value="#{functionroleController.selected.roleId}" title="#{bundle.EditFunctionroleTitle_roleId}" required="true" requiredMessage="#{bundle.EditFunctionroleRequiredMessage_roleId}">
                        <f:selectItems value="#{roleController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditFunctionroleLabel_functionid}" for="functionid" />
                    <h:selectOneMenu id="functionid" value="#{functionroleController.selected.functionid}" title="#{bundle.EditFunctionroleTitle_functionid}" required="true" requiredMessage="#{bundle.EditFunctionroleRequiredMessage_functionid}">
                        <f:selectItems value="#{functionController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{functionroleController.update}" value="#{bundle.EditFunctionroleSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditFunctionroleViewLink}"/>
                <br />
                <h:commandLink action="#{functionroleController.prepareList}" value="#{bundle.EditFunctionroleShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditFunctionroleIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
